package com.itheima.spring.factory;

import com.itheima.spring.Dao.impl.BookDaoImpl;
import com.itheima.spring.service.BookService;
import com.itheima.spring.service.impl.BookServiceImpl;

public class BookServiceFactory {
    private BookDaoImpl bookDao;
    public BookService getBookService()
    {
        return new BookServiceImpl();
    }
    public void setBookDao(BookDaoImpl bookDao) {
        this.bookDao = (BookDaoImpl) bookDao;
    }
}
